<?php
namespace app\common\model\project_model;

use app\common\model\Base;
use think\Model;

class ArticleModel extends Model {

    const STATUS_LOCK = 0;
    const STATUS_OK = 1;

    const TYPE_MUSIC = 1;
    const TYPE_VIDEO = 2;

    protected $table = 'ph_Article';

    public static function statusList() {
        return [
            self::STATUS_OK => '启用',
            self::STATUS_LOCK => '锁定',
        ];
    }

    public static function typeList() {
        return [
            self::TYPE_MUSIC => '音乐版',
            self::TYPE_VIDEO => '视频版'
        ];
    }

}